package com.edunera.connection;

import android.content.Context;
import com.edunera.R;

public abstract class TaskIsConnectedBefore extends BaseTask {

    String userDeviceId;
    public boolean isConnected;
    public TaskIsConnectedBefore(Context context, String userDeviceId) {
        super(context, R.string.loading);
        this.userDeviceId = userDeviceId;
    }



    @Override
    public void doTask() {
         isConnected = Connection.isUserConnectedBefore(userDeviceId);
    }

    @Override
    public abstract void onComplete();

}
